package com.zgl.modules.goods.DTO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zgl.utils.BasePage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsDTO extends BasePage implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "商品名称",required = true )
    private String goodsName;
    @ApiModelProperty(value = "商品价格",required = false)
    private String goodsPrice;
    @ApiModelProperty(value = "商品详情",required = false)
    private String goodsDetail;
    @ApiModelProperty(value = "图片",required = false)
    private Object goodsImg;
    @ApiModelProperty(value = "商品利率",required = true)
    private String goodsRate;
    @ApiModelProperty(value = "风险等级",required = false)
    private Integer riskLevel;
    @ApiModelProperty(value = "最低金额",required = false)
    private String limitPrice;
    @ApiModelProperty(value = "商品期限",required = false)
    private Integer goodsTerm;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime data;
}
